package com.ruoyi.blogs.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 方向对象 bs_direction
 * 
 * @author ruoyi
 * @date 2022-11-09
 */
@ApiModel(value = "BsDirection", description = "方向实体")
public class BsDirection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类id */
    @ApiModelProperty(value = "方向id")
    private Long id;

    /** 分类名称 */
    @ApiModelProperty(value = "分类名称", required = true)
    @Excel(name = "分类名称")
    private String name;

    /** 是否显示 */
    @ApiModelProperty(value = "是否显示", required = true)
    @Excel(name = "是否显示")
    private Integer visible;

    /** 排序 */
    @ApiModelProperty(value = "排序", required = true)
    @Excel(name = "排序")
    private Long sort;

    /** 分类信息 */
    private List<BsGroup> bsGroupList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setVisible(Integer visible) 
    {
        this.visible = visible;
    }

    public Integer getVisible() 
    {
        return visible;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public List<BsGroup> getBsGroupList()
    {
        return bsGroupList;
    }

    public void setBsGroupList(List<BsGroup> bsGroupList)
    {
        this.bsGroupList = bsGroupList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("visible", getVisible())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("bsGroupList", getBsGroupList())
            .toString();
    }
}
